<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:insert="~{include :: header('新增会员商品')}" />
</head>
<body class="hold-transition">
<div class="container-fluid mt-2 mb-2">
    <form class="form-horizontal m" id="form-express-edit">
        <input type="hidden" name="id" th:value="${express.id}">
        <div class="form-group row" style="margin-top: 30px">
            <label class="col-sm-2 col-form-label is-required text-sm-right">收件人</label>
            <div class="col-sm-3">
                <input name="userName" th:value="${express.userName}" placeholder="请输入收件人名称" class="form-control" type="text">
            </div>
            <label class="col-sm-2 col-form-label is-required text-sm-right">电话</label>
            <div class="col-sm-3">
                <input name="mobile" th:value="${express.mobile}" placeholder="请输入联系电话" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 col-form-label is-required text-sm-right">快递单号</label>
            <div class="col-sm-3">
                <input name="courierNo" th:value="${express.courierNo}" placeholder="请输入快递单号" class="form-control" type="text">
            </div>
            <label class="col-sm-2 col-form-label is-required text-sm-right">状态</label>
            <div class="col-sm-3">
                <select name="status" class="form-control m-b">
                    <option value="0" th:selected="${express.status==0}">未配送</option>
                    <option value="1" th:selected="${express.status==1}">已配送</option>
                </select>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 col-form-label is-required text-sm-right">配送地址</label>
            <div class="col-sm-8">
                <input name="address" th:value="${express.address}" placeholder="请输入配送地址" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:insert="~{include :: footer}" />
<script type="text/javascript">
    $("#form-sale-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save("/order/express/edit.json", $('#form-express-edit').serialize());
        }
    }
</script>
</body>
</html>